﻿using System;
using System.Collections.Generic;
using System.Text;

namespace System
{
    public static class StringHelper
    {
        static StringHelper()
        {
            List<char> cs = new List<char>(10);
            for (char i = char.MinValue; i < char.MaxValue; i++)
            {
                if (char.IsWhiteSpace(i))
                {
                    cs.Add(i);
                }
            }
            WhiteSpaces = cs.ToArray();
        }
        public static readonly char[] WhiteSpaces;

        public const char Space = ' ';
        /// <summary>
        /// 全角空格
        /// </summary>
        public static string FullWidthSpace
        {
            get { return "　"; }
        }

        /// <summary>
        /// 制表符
        /// </summary>
        public static string Tab
        {
            get { return "\t"; }
        }

        /// <summary>
        /// 换车符加换行符
        /// </summary>
        public static string NewLine
        {
            get { return "\r\n"; }
        }

        /// <summary>
        /// 回车符
        /// </summary>
        public static char EnterChar
        {
            get { return '\r'; }
        }

        /// <summary>
        /// 换行符
        /// </summary>
        public static char NewLineChar
        {
            get { return '\n'; }
        }
    }


}
